
package com.huaweicloud.saaslanding.install.constant;

/**
 * CCE 常量
 *
 * @since 2022-03-21
 */
public class CceConstant {
    /**
     * 前端微服务命名后缀
     */
    public static final String UI;

    /**
     * 网关微服务命名后缀
     */
    public static final String GATEWAY;

    /**
     * 租户微服务命名后缀
     */
    public static final String TENANT;

    /**
     * 授权微服务命名后缀
     */
    public static final String AUTHORITY;

    /**
     * CCE 创建namespace
     */
    public static final String URI_CREATE_NAMESPACE;

    /**
     * CCE 删除namespace
     */
    public static final String URI_DELETE_NAMESPACE;

    /**
     * CCE 创建deployment
     */
    public static final String URI_CREATE_DEPLOYMENT;

    /**
     * CCE 创建deployment 后缀
     */
    public static final String URI_CREATE_DEPLOYMENT_SUFFIX;

    /**
     * CCE 创建service
     */
    public static final String URI_CREATE_SERVICE;

    /**
     * CCE 创建service 后缀
     */
    public static final String URI_CREATE_SERVICE_SUFFIX;

    /**
     * CCE 创建配置项
     */
    public static final String URI_CREATE_CONFIG;

    /**
     * CCE 创建配置项 后缀
     */
    public static final String URI_CREATE_CONFIG_SUFFIX;

    /**
     * CCE 创建密钥
     */
    public static final String URI_CREATE_SECRET;

    /**
     * CCE 创建密钥 后缀
     */
    public static final String URI_CREATE_SECRET_SUFFIX;

    public static final String TLS_CRT;

    public static final String TLS_KEY;

    static {
        UI = "ui";
        GATEWAY = "gateway";
        TENANT = "tenant";
        AUTHORITY = "authority";
        URI_CREATE_NAMESPACE = "/api/v1/namespaces";
        URI_DELETE_NAMESPACE = "/api/v1/namespaces/";
        URI_CREATE_DEPLOYMENT = "/apis/apps/v1/namespaces/";
        URI_CREATE_DEPLOYMENT_SUFFIX = "/deployments";
        URI_CREATE_SERVICE = "/api/v1/namespaces/";
        URI_CREATE_SERVICE_SUFFIX = "/services";
        URI_CREATE_CONFIG = "/api/v1/namespaces/";
        URI_CREATE_CONFIG_SUFFIX = "/configmaps";
        URI_CREATE_SECRET = "/api/v1/namespaces/";
        URI_CREATE_SECRET_SUFFIX = "/secrets";
        TLS_CRT = "tls.crt";
        TLS_KEY = "tls.key";
    }
}
